Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
TYPE-OF function
TYPE-OFis a built-inLOGICALfunction that verifies that a specified object reference points to an object that is defined as a specified class, inherits from a specified class, or implements a specified interface.This is the syntax for the
TYPE-OFfunction:
Element descriptions for this syntax diagram follow:
object-referenceAn object reference defined as any class or interface type.
type-nameThe type name of a class or interface. For more information on type names, see the "Using the CLASS construct" section or the "Using the INTERFACE construct" section, respectively.
The function verifies that the object referenced by the specified
object-referencesatisfies one of the following conditions:If any of these conditions are valid, this function returns
TRUE. If none are valid, this function returnsFALSE. Ifobject-referencedoes not point to a valid object (see the "VALID-OBJECT function" section), theTYPE-OFfunction returns the Unknown value (?).
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |